package com.andy.beef.app.net

import com.andy.beef.app.util.LocalDataUtil
import com.andy.module.network.HeadInterceptor
import okhttp3.Request

/**
 * @creator:LuoFan
 * @date:2022/9/30
 * @description:
 */
class AppHeadInterceptor : HeadInterceptor() {

    override fun handlerHeaderParams(requestBuilder: Request.Builder) {
        super.handlerHeaderParams(requestBuilder)
        requestBuilder.addHeader("_Token_", LocalDataUtil.getToken())
    }
}